
{{extend 'layout.html'}}
{{syns = PTCFG.synonyms}}
<div id=pagehelpcontent class=hidden>
<h3><strong>{{=T("Page Help")}}</strong></h3>
<p>{{=T("This page displays all the invitations you have received.")}}</p>
<p>{{=T("Use the checkboxes to accept or decline invitations, then click Submit to update your changes on the PeerTool server. Note: At present you must accept a new invitation before you can decline it. We're working on a tri-state input to remedy this mis-feature. Please be patient...")}}</p>  
<p>{{=T("Invitations you have accepted are shown as hyperlinks. New invitations are in plain text. Declined invitations are struck through.")}}</p> 
<p><em>{{=T("When you uncheck a box to decline an invitation, you will see an alert to remind you that resigning from a problem you've previously accepted will delete any responses you may have made to that problem.  Also, PeerTool automatically deletes abandoned problems.  A problem is considered abandoned when the last participant resigns from it.")}}</em></p>
<p>{{=T("To select problem to work on, click its link in the first column.  The link will take you to the Respond page. From there, you may use the Main Menu buttons to edit the problem, view the results, or invite others to participate.")}}</p>
</div>
<h1>{{=T("Choose and manage invitations")}}</h1>
{{=form}}
 <script type="text/javascript">
    /* <![CDATA[ */
    function onResignation(){
        // Warn user about implications of resigning from problem.
        // This function is bound to all the checkbox elements in 
        // in the 'Accept' column
        if ( (this.value == 'on') && (this.checked==false)) {
            alert("{{=T("You are electing to resign from this problem. Leaving the box unchecked and clicking Submit will resign you from the problem and remove your responses. If you are the last participant in the problem it may also cause the problem to be deleted from PeerTool's database. If this is not what you intend, re-check the box before clicking Submit.")}}");
            }
        };
    $(document).ready(function(){
        $('input.{{=kls}}').click(onResignation);
        });
    
    /* ]]> */
</script>
